package com.huahua.api.entity.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Huahua-Ai
 * @date 2025-01-10 14:30:00
 * @description 文字转语音记录实体
 */
@Table("tts_record")
@Data
public class TtsRecord implements Serializable {

    @Id
    private Long id;

    @Column("text_content")
    private String textContent;

    @Column("status")
    private String status;

    @Column("file_url")
    private String fileUrl;

    @Column("prompt")
    private String prompt;

    @Column("temperature")
    private BigDecimal temperature;

    @Column("top_p")
    private BigDecimal topP;

    @Column("top_k")
    private Integer topK;

    @Column("refine_max_new_token")
    private Integer refineMaxNewToken;

    @Column("infer_max_new_token")
    private Integer inferMaxNewToken;

    @Column("skip_refine")
    private Boolean skipRefine;

    @Column("custom_voice")
    private String customVoice;

    @Column("created_time")
    private LocalDateTime createdTime;

    @Column("process_start_time")
    private LocalDateTime processStartTime;

    @Column("completed_time")
    private LocalDateTime completedTime;

    @Column("task_duration_with_wait")
    private Long taskDurationWithWait;

    @Column("task_duration_without_wait")
    private Long taskDurationWithoutWait;

    @Column("duration")
    private Integer duration;

    @Column("error_message")
    private String errorMessage;
}
